package com.langyue.recordmanage.service;

import com.langyue.recordmanage.mapper.TeacherMapper;
import com.langyue.recordmanage.pojo.Teacher;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Description:
 * @Author: wanglang
 * @CreateTime: 2022/4/7
 * @Company:
 */
@Service
public class TeacherService {
    @Autowired
    private TeacherMapper teacherMapper;

    public void add(Teacher teacher){
        teacherMapper.insert(teacher);
    }

    public void deleteById(Long id){
        teacherMapper.deleteById(id);
    }

    public void updateById(Teacher teacher){
        teacherMapper.updateById(teacher);
    }
}
